client/verb

/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
///    Interface Buttons     ///
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/

	menuSettingsButton()
		set hidden = 1
		if(winget(src,"Main_Settings","is-visible") == "true")
			winset(src,"Main_Settings","is-visible=false")
		else
			winset(src,"Main_Settings","is-visible=true;pos=[WINDOW_LOCATION]")
			loadSettings()

	menuRadioButton()
		set hidden = 1
		if(winget(src,"Radio_Window","is-visible") == "true")
			winset(src,"Radio_Window","is-visible=false")
		else
			winset(src,"Radio_Window","is-visible=true;pos=[WINDOW_LOCATION]")
			if(!RADIO)
				src.mob.overlays+=/obj/note
				RADIO = 1

	menuShowcodeButton()
		set hidden = 1
		if(winget(src,"Showcode_Input","is-visible") == "true")
			winset(src,"Showcode_Input","is-visible=false")
		else
			winset(src,"Showcode_Input","is-visible=true;pos=[WINDOW_LOCATION]")
			winset(src,"Showcode_Input.codeinput","focus=true")

	menuIgnoreButton()
		set hidden = 1
		if(winget(src,"Main_IgnoreList","is-visible") == "true")
			winset(src,"Main_IgnoreList","is-visible=false")
		else
			winset(src,"Main_IgnoreList","is-visible=true;pos=[WINDOW_LOCATION]")
			src.ignoreLists()

	menuBrowserButton()
		set hidden = 1
		if(winget(src,"Main_Browser","is-visible") == "true")
			winset(src,"Main_Browser","is-visible=false")
			winset(src,"Main_Browser.browser","url=")
		else
			winset(src,"Main_Browser","is-visible=true;pos=[WINDOW_LOCATION]")
			winset(src,"Main_Browser.browser","url=")

	menuVideoButton(var/type as num|null)
		set hidden = 1
		if(type == 1 || winget(src,"Video_Browser","is-visible") == "true")
			winset(src,"Video_Browser","is-visible=false")
			src<<output("","Video_Browser.browser")
			src.mob.overlays -= /obj/cam
			CAM = 0
		else
			winset(src,"Video_Browser","is-visible=true;pos=[WINDOW_LOCATION]")
			if(!CAM)
				src.mob.overlays+=/obj/cam
				CAM = 1
			src<<output("<script type=\"text/javascript\">window.location=\"http://dl.dropbox.com/u/16250107/Saloon/video.html\";</script>","Video_Browser.browser")

	menuCloseVideo()
		set hidden = 1
		menuVideoButton(1)